import { defineStore } from 'pinia'
import { useBasicListStore } from './modules/basic-list'

export const useRootStore = defineStore('root', {
  actions: {
    resetPageState() {
      const pageStores = [
        useBasicListStore()
      ]
      pageStores.forEach(item => {
        item.resetState()
      })
    },
  }
})
